package git.soulbgm.controller;

import git.soulbgm.api.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试控制器
 *
 * @author SoulBGM
 * @date 2022/03/04 17:02
 */
@RestController
public class TestController {

    @Reference
    private HelloService helloService;

    @GetMapping("test")
    public String test() {
        return helloService.hello("测试");
    }

}
